package com.wpf.system.service;

import com.wpf.system.entity.EquipmentBuy;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wpf.system.entity.dto.BookRentBuySearchDTO;
import com.wpf.system.entity.vo.EquipmentBagVO;
import com.wpf.system.entity.vo.EquipmentBuyVO;
import com.wpf.system.entity.vo.EquipmentChartVO;

import java.util.List;

/**
* @author ferna
* @description 针对表【equipment_buy(器材购买记录表)】的数据库操作Service
* @createDate 2023-02-14 21:21:48
*/
public interface EquipmentBuyService extends IService<EquipmentBuy> {
    /**
     * 回显购买确认
     * @param ids 购买记录id集
     * @return 购买记录的详细信息
     */
    List<EquipmentBagVO> getBackEquipmentInfo(List<Long> ids);

    /**
     * 根据条件查看购买情况
     */
    List<EquipmentBuyVO> getAllEquipmentBuy(BookRentBuySearchDTO bookRentBuySearchDTO);

    /**
     * 批量物理删除购买记录
     * @param ids 删除的购买记录id集
     * @return 是否删除成功
     */
    int deleteEquipmentBuyByIds(List<Long> ids);

    /**
     * 获取出售图表情况
     */
    List<EquipmentChartVO> getEquipmentBuyChartData(String date);
}
